import Vue from "vue";
import Vuex from "vuex";

//引入模块化的store
import cart from "./cart"
import product from "./product"

Vue.use(Vuex);

// console.log(process.env)

//根store
export default new Vuex.Store({
  strict: process.env.NODE_ENV === "development",
  state: {
    arr: ['吃', '写代码']
  },
  getters: {},
  mutations: {
    aa() { }
  },
  actions: {},
  modules: {
    cart,
    product
  },
});
